package main

import (
	"log"
	"math/rand"

	//_仅仅是为了导入包的init方法执行（匿名导包）
	_ "studygo/sp/a/demo_init/lib1"

	//包别名
	//mylib2 "studygo/sp/a/demo_init/lib2"

	//导入全部方法
	. "studygo/sp/a/demo_init/lib2"
	"time"
)

func init() {
	rand.Seed(time.Now().UnixNano())
	log.SetPrefix("TRACE: ")
	log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
}
func main() {
	//lib2.Lib2Test()

	//包别名
	//mylib2.Lib2Test()

	Lib2Test()
}
